package com.qumitech.visualnovel.datasource.editor;

import java.util.*;
import com.qumitech.visualnovel.model.dao.editor.ResourceDAO;
import com.qumitech.visualnovel.model.dto.ResourceQueryDTO;
import com.qumitech.visualnovel.model.dto.ResourceRelationOptionsDTO;

public interface ResourceDAOMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ResourceDAO record);

    int insertSelective(ResourceDAO record);

    ResourceDAO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ResourceDAO record);

    int updateByPrimaryKey(ResourceDAO record);

    int total(ResourceQueryDTO param);

    List<ResourceDAO> list(ResourceQueryDTO param);

    List<HashMap<Long, String>> relationOptions(ResourceRelationOptionsDTO param);

    List<ResourceDAO> getRelationChildren(Long relationId);

    List<ResourceDAO> getRelationParents(Long relationId);
}